<% 
#locals
article_comment=display ||  @article_comment
%>
<div id='article_comment<%=article_comment.id%>'>
<div>
	<%- if (logged_in?) && !(current_person?(article_comment.commenter)) -%>
		<script language=javascript>
		function changefriend(id,result)
		{
			$('friend'+id+'_1').setStyle({display:( result?'block':'none')});
			$('friend'+id+'_0').setStyle({display: (result?'none':'block')});
		}
		</script>
		<%-
			friend_man= FriendManager.new(current_person.id)
		-%>
		<span id='friend<%=article_comment.commenter.id%>'>
		<input type=hidden name=friend_id value='<%=article_comment.commenter.id%>'></input>
		<input type=hidden id=action<%=article_comment.commenter.id%> name=action2 value='addf'></input>
		</span>
		<span id='friend<%=article_comment.commenter.id%>_1' style='display:<%= friend_man.is_friend?(article_comment.commenter.id) ? 'block':'none' %>'>
		<%= link_to_remote image_tag('/images/minus_icon.gif',:title=>"remove friendship with #{h article_comment.commenter.name}!"),:submit=>("friend"+(article_comment.commenter.id.to_s)),:url    => change_friends_path,:before=>("$('action"+(article_comment.commenter.id.to_s)+"').value='delf'"), :method => :get %>
		</span>
		<span id='friend<%=article_comment.commenter.id%>_0'  style='display:<%= friend_man.is_friend?(article_comment.commenter.id) ? 'none':'block' %>'>
		<%= link_to_remote image_tag('/images/plus_icon.gif',:title=>"make friend with #{h article_comment.commenter.name}!"),:submit=>("friend"+(article_comment.commenter.id.to_s)),:url    => change_friends_path,:before=>("$('action"+(article_comment.commenter.id.to_s)+"').value='addf'"), :method => :get %>
		</span>
 	<%- end -%>
	<a href="<%=blogs_cat_person_path(@cat_id,article_comment.commenter)%>" class="blue"><%= article_comment.commenter.name %></a> at <%= time_ago_in_words article_comment.created_at  %> ago 
</div>
<div>
<%= display article_comment.body%>
</div>
</div>